dadc7b49e446d0f0614fde6f0bbf3bf1ddf02041
[git-annex.git] /
1 [[!comment format=mdwn
2  username="joey"
3  subject="""comment 1"""
4  date="2022-11-28T17:57:19Z"
5  content="""
6 You can edit the hooks that git-annex installs however you need to. It will
7 not overwrite modified hook files. If you edit this hook to have unix line
8 endings, does the hook still work when using this repository on windows?
9
10 Actually, I'm having difficulty seeing how the CR could have gotten into
11 that hook. `mkHookScript` uses `unlines` which behaves the same on Windows
12 as on Linux, so in either case lines should be separated only by `\n`.
13
14 This makes me wonder if something else modified the hook after git-annex
15 wrote it. If so, `git-annex init` should complain that the hook is
16 modified.
17 """]]